<ul class="nav nav-tabs">
<li <?php if (get ( 'm' ) == 'ad' && get ( 'a' ) == 'default'): ?> class="active"<?php endif; ?>><a href="<?php echo $this->_var['appadmin']; ?>?m=ad&tag_id=<?php echo get_post('tag_id');?>&tag_2nd_id=<?php echo get_post('tag_2nd_id');?>">广告管理</a></li>
<li <?php if (get ( 'm' ) == 'ad' && get ( 'a' ) == 'add'): ?> class="active"<?php endif; ?>><a href="<?php echo $this->_var['appadmin']; ?>?m=ad&a=add&tag_id=<?php echo get_post('tag_id');?>&tag_2nd_id=<?php echo get_post('tag_2nd_id');?>">广告添加</a></li>
<li <?php if (get ( 'm' ) == 'ad_tags' && get ( 'a' ) == 'default'): ?> class="active"<?php endif; ?>><a href="<?php echo $this->_var['appadmin']; ?>?m=ad_tags">广告分类管理</a></li>
<li <?php if (get ( 'm' ) == 'ad_tags' && get ( 'a' ) == 'ad'): ?> class="active"<?php endif; ?>><a href="<?php echo $this->_var['appadmin']; ?>?m=ad_tags&a=add">广告分类添加</a></li>
</ul>